package com.bwie.service.impl;

import cn.hutool.db.sql.Order;
import com.bwie.mapper.OrderMapper;
import com.bwie.pojo.R;
import com.bwie.pojo.po.OrderPo;
import com.bwie.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;
    @Override
    public R getOrderList(Integer changeId) {
        if(changeId==null){
            return R.err().msg("参数异常");
        }
        List<OrderPo> list = orderMapper.getOrderList(changeId);
        return R.ok().data(list);
    }
}
